package com.navinfo.data.journal;


import java.util.ArrayList;
import java.util.List;

/**
 * 趟程BEAN
 */
public class VehicleJournalBean {
    /**
     * 趟程描述
     */
    List<JournalDescV3> journalDescList = new ArrayList<JournalDescV3>();
    /**
     * 趟程边线
     */
    List<JournalEdge> journalEdgeList = new ArrayList<JournalEdge>();
    /**
     * 趟程节点
     */
    List<JournalVertex> journalVertexList = new ArrayList<JournalVertex>();
    /**
     * 平均趟程里程（米）
     */
    int avgJournalDistance = 0;
    /**
     * 平均趟程时长（秒）
     */
    int avgJournalDuration = 0;
    /**
     * 车辆TID
     */
    String tid;

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("\n----------------------VehicleJournalBean-------------------------------------");
        sb.append("\ntid=").append(tid);
        sb.append("\n\n-----------JournalVertex--------------\n");
        for (JournalVertex jv : journalVertexList) {
            sb.append("\n").append(jv.toString()).append("\n");
        }
        sb.append("\n\n-----------JournalEdge--------------\n");
        for (JournalEdge je : journalEdgeList) {
            sb.append("\n").append(je.toString()).append("\n");
        }
        sb.append("\n\n-----------JournalDesc-------------\n");
        for (JournalDescV3 jd : journalDescList) {
            sb.append("\n").append(jd.toString()).append("\n");
        }
        sb.append("\n\n-----------AVG-Distance&Duration--------------\n");
        sb.append("avgJournalDistance=").append(avgJournalDistance).append("\n");
        sb.append("avgJournalDuration=").append(avgJournalDuration).append("\n");
        sb.append("----------------------VehicleJournalBean-------------------------------------");
        return sb.toString();
    }

    public VehicleJournalBean() {
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public List<JournalDescV3> getJournalDescList() {
        return journalDescList;
    }

    public void setJournalDescList(List<JournalDescV3> journalDescList) {
        this.journalDescList = journalDescList;
    }

    public List<JournalEdge> getJournalEdgeList() {
        return journalEdgeList;
    }

    public void setJournalEdgeList(List<JournalEdge> journalEdgeList) {
        this.journalEdgeList = journalEdgeList;
    }

    public List<JournalVertex> getJournalVertexList() {
        return journalVertexList;
    }

    public void setJournalVertexList(List<JournalVertex> journalVertexList) {
        this.journalVertexList = journalVertexList;
    }

    public int getAvgJournalDistance() {
        return avgJournalDistance;
    }

    public void setAvgJournalDistance(int avgJournalDistance) {
        this.avgJournalDistance = avgJournalDistance;
    }

    public int getAvgJournalDuration() {
        return avgJournalDuration;
    }

    public void setAvgJournalDuration(int avgJournalDuration) {
        this.avgJournalDuration = avgJournalDuration;
    }
}
